<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
<head>
<link rel="stylesheet" type="text/css" href="../woodstock/woodstock.css" />
</head>
<body>
<f:view>
	<ice:form>
		<ice:panelGroup>
			<ice:panelPopup modal="true"
				visible="#{postMBean.windowNewPostVisible}" autoCentre="true">
				<f:facet name="header">
					<ice:panelGrid columns="2" width="100%"
						columnClasses="floatLeft,floatRight"
						styleClass="#{configMBean.style}">
						<ice:outputText value="Nova Postagem" />
						<ice:commandButton value="x"
							actionListener="#{postMBean.fecharWindow}" />
					</ice:panelGrid>
				</f:facet>
				<f:facet name="body">
					<ice:panelGrid>
						<ice:panelGrid columns="2">
							<ice:outputText value="Titulo do post:" />
							<ice:inputText value="#{postMBean.tituloPost}" />
						</ice:panelGrid>
						<ice:panelGrid columns="6">
							<ice:outputText value="Tag 1:" />
							<ice:inputText style="width: 100px; " value="#{postMBean.tag1}" />
							<ice:outputText value="Tag 2:" />
							<ice:inputText style="width: 100px; " value="#{postMBean.tag2}" />
							<ice:outputText value="Tag 3:" />
							<ice:inputText style="width: 100px; " value="#{postMBean.tag3}" />
						</ice:panelGrid>

						<ice:inputTextarea style="height: 98px; width: 485px; "
							validator="#{postMBean.contentSize}" 
							value="#{postMBean.conteudoPost}" maxlength="200"
							immediate="true" partialSubmit="true"/>
						<!-- <ice:outputText id="contador" value="#{postMBean.length}" /> -->
						<ice:panelGroup style="text-align:right;">
							<ice:commandButton value="Submeter"
								actionListener="#{postMBean.submeter}" />
							<ice:commandButton value="Cancelar"
								actionListener="#{postMBean.fecharWindow}" />
						</ice:panelGroup>
					</ice:panelGrid>
				</f:facet>
			</ice:panelPopup>
		</ice:panelGroup>
	</ice:form>
</f:view>
</body>
</html>